import React, { FC, ReactElement } from 'react'
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'

import Home from './Home'
import Login from './Login'
import Collection from 'Components/Collection'

import 'antd-mobile/es/global'

const News: FC = (): ReactElement => {
  // console.log('news render')
  return (
    <Router>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/login" element={<Login />} />
        <Route path="/collection" element={<Collection />} />
      </Routes>
    </Router>
  )
}

export default News
